// 品牌管理的接口
import request from "@/utils/request";

// 获取品牌列表
export const getTradeMark = ({page, limit}) => {
  return request({
    url: `/admin/product/baseTrademark/${page}/${limit}`,
    method: 'get'
  })
}

// 新增品牌
export const addTradeMark = (data) => {
  return request({
    url: `/admin/product/baseTrademark/save`,
    method: 'post',
    data
  })
}

// 修改品牌
export const editTradeMark = (data) => {
  return request({
    url: `/admin/product/baseTrademark/update`,
    method: 'put',
    data
  })
}

// 删除品牌
export const removeTradeMark = (id) => {
  return request({
    url: `/admin/product/baseTrademark/remove/${id}`,
    method: 'delete'
  })
}
